package com.bianqian.demo.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 创建笔记请求DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CreateNoteRequest {
    
    @NotBlank(message = "笔记标题不能为空")
    @Size(min = 1, max = 200, message = "笔记标题长度必须在1-200个字符之间")
    private String title;
    
    private String content;
    
    private String category;
}





